import {adminUrl} from "@/utils/baseUrl.js"
import request from '@/utils/request'

// 创建奖励惩罚设置
export function createStudenRewardPunish(data) {
  return request({
    url: adminUrl + '/collegebase/studen-reward-punish/create',
    method: 'post',
    data: data
  })
}

// 更新奖励惩罚设置
export function updateStudenRewardPunish(data) {
  return request({
    url: adminUrl + '/collegebase/studen-reward-punish/update',
    method: 'put',
    data: data
  })
}

// 删除奖励惩罚设置
export function deleteStudenRewardPunish(id) {
  return request({
    url: adminUrl + '/collegebase/studen-reward-punish/delete?id=' + id,
    method: 'delete'
  })
}

// 获得奖励惩罚设置
export function getStudenRewardPunish(id) {
  return request({
    url: adminUrl + '/collegebase/studen-reward-punish/get?id=' + id,
    method: 'get'
  })
}

// 获得奖励惩罚设置分页
export function getStudenRewardPunishPage(query) {
  return request({
    url: adminUrl + '/collegebase/studen-reward-punish/page',
    method: 'get',
    params: query
  })
}

// 导出奖励惩罚设置 Excel
export function exportStudenRewardPunishExcel(query) {
  return request({
    url: adminUrl + '/collegebase/studen-reward-punish/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
